package com.sundhage.gui {
	import flash.text.*;
	
	public class JSDropdownSettings {
		public var title:String = "";
		public var itemHeight:int = 20;
		public var itemPad:int = 2;
		public var width:int = 150;
		public var generalPad:int = 2;
		public var hasScroller:Boolean = false;

		public var scrollerAssets:JSScrollerAssets;
		public var scrollerWidth:int = 20;
		public var scrollerCurve:int = 5;
		
		public var itemMouseOverColor:uint = 0x0;
		public var itemMouseOverAlpha:Number = 0.2;
		
		
		public var headTextFormat:TextFormat;
		public var headTextColor:uint = 0x0;
		public var itemTextFormat:TextFormat;
		public var itemTextColor:uint = 0x0;
		public var orgObj:Object;
		// DO NOT TOUCH!
		public var totalHeight:int;
		
		private function parseObj(o:Object):void {
			for (var prop:* in o) {
				try {
					this[prop] = o[prop];
				} catch (e:Error) {
					trace("JSDropdownSettings::parseObj -> property "+prop+" does not exist.");
				}
			}
		}
		public function JSDropdownSettings(obj:Object = null) {
			this.orgObj = obj;
			if (obj) {
				parseObj(obj);
			}
			if (!headTextFormat) {
				headTextFormat = new TextFormat();
				headTextFormat.size = 20;
			}
			if (!itemTextFormat) {
				itemTextFormat = new TextFormat();
				itemTextFormat.size = 12;
			}
			var hh:int = 0;
//			if (!hasHead) headHeight = 0;
//			totalHeight = height+itemPad+headHeight;
			
		}
	}
}